﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfSnqkGasAnalysis.Model
{
    /// <summary>
    /// 气分析
    /// </summary>
    public class Gas_analysis : BaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 类别,1=开发，3=勘探，4=汇管；
        /// </summary>
        public string Cate { get; set; }

        /// <summary>
        /// 样品编号
        /// </summary>
        public string Sample_no { get; set; }

        /// <summary>
        /// 井号
        /// </summary>
        public string Well_no { get; set; }

        /// <summary>
        /// 构建名称
        /// </summary>
        public string Build_name { get; set; }

        /// <summary>
        /// 顶界层位
        /// </summary>
        public string Top_horizon { get; set; }

        /// <summary>
        /// 底界层位
        /// </summary>
        public string Bottom_horizon { get; set; }

        /// <summary>
        /// 顶界井深
        /// </summary>
        public decimal? Top_well_deep { get; set; }

        /// <summary>
        /// 低界井深
        /// </summary>
        public decimal? Bottom_well_deep { get; set; }

        /// <summary>
        /// 取样位置
        /// </summary>
        public string Sampling_location { get; set; }

        /// <summary>
        /// 取样单位
        /// </summary>
        public string Samping_company_name { get; set; }

        /// <summary>
        /// 分析单位
        /// </summary>
        public string Analysis_company_name { get; set; }
        public string Remark { get; set; }

        /// <summary>
        /// 取样条件
        /// </summary>
        public string Samping_condition { get; set; }

        /// <summary>
        /// 委托单位名称
        /// </summary>
        public string Client { get; set; }

        /// <summary>
        /// 取样时间
        /// </summary>
        public string Samping_time { get; set; }

        /// <summary>
        /// 分析时间
        /// </summary>
        public string Analysis_time { get; set; }

        /// <summary>
        /// 取样人姓名
        /// </summary>
        public string Samping_user { get; set; }

        /// <summary>
        /// 分析人姓名
        /// </summary>
        public string Analysis_user { get; set; }

        /// <summary>
        /// 取样温度
        /// </summary>
        public decimal? Samping_temperature { get; set; }

        /// <summary>
        /// 油压
        /// </summary>
        public decimal? Oil_pressure { get; set; }

        /// <summary>
        /// 套压
        /// </summary>
        public decimal? Casing_pressure { get; set; }

        /// <summary>
        /// 总硫
        /// </summary>
        public decimal? Zong_s { get; set; }

        /// <summary>
        /// 水露点
        /// </summary>
        public decimal? Water_point { get; set; }
        public decimal? He { get; set; }
        public decimal? H2 { get; set; }
        public decimal? O2 { get; set; }
        public decimal? N2 { get; set; }
        public decimal? C1 { get; set; }
        public decimal? C6 { get; set; }
        public decimal? C3 { get; set; }
        public decimal? Ic4 { get; set; }
        public decimal? Nc4 { get; set; }
        public decimal? Ic5 { get; set; }
        public decimal? Nc5 { get; set; }
        public decimal? CO2 { get; set; }
        public decimal? C2 { get; set; }

        /// <summary>
        /// 是否脱硫,1=脱硫，0=未脱
        /// </summary>
        public byte? Is_desulphurization { get; set; }
        public decimal? H2Smg { get; set; }

        /// <summary>
        /// 总值
        /// </summary>
        public decimal? All_calc_value { get; set; }

        /// <summary>
        /// 校对人Id
        /// </summary>
        /// 添加时间：2023-1-6 18:04:27。作者：王浩力
        public long? Proofreader_userId { get; set; }

        /// <summary>
        /// 校对人
        /// </summary>
        public string Proofreader { get; set; }

        /// <summary>
        /// 校对时间
        /// </summary>
        public string Proofread_time { get; set; }

        ///// <summary>
        ///// 是否审核通过，1=通过，0=没有通过
        ///// </summary>
        //public byte? Is_check_pass { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public string Del_time { get; set; }

        /// <summary>
        /// 录入人id
        /// </summary>
        public long Input_user_id { get; set; }

        /// <summary>
        /// 录入人姓名
        /// </summary>
        public string Input_real_name { get; set; }

        /// <summary>
        /// 录入时间
        /// </summary>
        public string Input_time { get; set; }

        /// <summary>
        /// 当前步骤值。状态，1=待校对，2=待审核，3=被驳回，4=审核通过
        /// </summary>
        public byte? O_step { get; set; }

        /// <summary>
        /// 取样人id
        /// </summary>
        public long? Samping_user_id { get; set; }

        /// <summary>
        /// 分析人id
        /// </summary>
        public long? Analysis_user_id { get; set; }

        /// <summary>
        /// 当前步骤的文本
        /// </summary>
        /// 创建时间：2022年12月7日20:49:18。
        public string O_step_Str
        {
            get
            {
                switch (O_step)
                {
                    case 1: return "待校对";
                    case 2: return "待审核";
                    case 3: return "被驳回";
                    case 4: return "审核通过";
                    default:
                        break;
                }
                return "待校对";
            }
        }


    }
}
